package org.xm.sk.vo.ob;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.xm.sk.vo.tb.ServerTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "ServerTimeInfo", description = "服务时间信息")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServerTimeInfo {

    @ApiModelProperty(value = "预约时间", dataType = "date", example = "2018-01-18 10:00:00")
    Date stime;
    
    @ApiModelProperty(value = "预约日期", dataType = "string", example = "2018-01-18")
    String date;
    
    @ApiModelProperty(value = "预约时间点", dataType = "string", example = "10:00")
    List<ServerTime> times = new ArrayList<ServerTime>(0);
    
    public ServerTimeInfo(Date stime) {
        this.stime = stime;
    }
    
    public ServerTimeInfo(String date, List<ServerTime> times) {
        this.date = date;
        this.times = times;
    }

}
